"""
Copyright © 2020 Walkline Wang (https://walkline.wang)
Gitee: https://gitee.com/walkline/micropython-ble-library
"""
from micropython import const


class BLEConst(object):
	class IRQ(object):
		SCAN_RESULT = const(5)
		SCAN_DONE = const(6)
		PERIPHERAL_CONNECT = const(7)
		PERIPHERAL_DISCONNECT = const(8)
		GATTC_SERVICE_RESULT = const(9)
		GATTC_SERVICE_DONE = const(10)
		GATTC_NOTIFY = const(18)
		CONNECTION_UPDATE = const(27)


	class ADType(object):
		COMPLETE_LOCAL_NAME = const(0x09) # Complete local device name.
		SERVICE_DATA = const(0x16) # Service Data - 16-bit UUID.


	class ADVType(object):
		IND = const(0x00) # connectable and scannable undirected advertising
		DIRECT_IND = const(0x01) # connectable directed advertising
